import request from '@/utils/request'

export function listChildUser(query) {
  return request({
    url: '/order/binding/childUserList',
    method: 'get',
    params: query
  })
}

export function testLogin() {
  return request({
    url: '/order/binding/test',
    method: 'get',
  })
}

// 查询工作室改价比例列表
export function listBinding(query) {
  return request({
    url: '/order/binding/list',
    method: 'get',
    params: query
  })
}

// 查询工作室改价比例详细
export function getBinding(id) {
  return request({
    url: '/order/binding/' + id,
    method: 'get'
  })
}

// 新增工作室改价比例
export function addBinding(data) {
  return request({
    url: '/order/binding',
    method: 'post',
    data: data
  })
}

// 修改工作室改价比例
export function updateBinding(data) {
  return request({
    url: '/order/binding',
    method: 'put',
    data: data
  })
}

// 删除工作室改价比例
export function delBinding(id) {
  return request({
    url: '/order/binding/' + id,
    method: 'delete'
  })
}
